package com.tbit.main.service.impl;

import cn.hutool.core.collection.CollUtil;
import com.tbit.main.dao.capital.RefundLogDao;
import com.tbit.main.pojo.RefundLog;
import com.tbit.main.service.RefundLogService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Collections;
import java.util.List;

/**
 * @author <a href="mailto:li.yao@tbit.com.cn">yao</a>
 * @version 4.2.1
 * @since 2024/10/22 13:47
 */
@Service
public class RefundLogServiceImpl implements RefundLogService {

    @Resource
    private RefundLogDao refundLogDao;

    @Override
    public List<RefundLog> getByBusinessNos(List<String> businessNos) {
        return CollUtil.isNotEmpty(businessNos)
                ? refundLogDao.selectByBusinessNos(businessNos)
                : Collections.emptyList();
    }
}
